package com.mall.bargain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mall.entity.bargain.BgBargainItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 * @date 2021/7/20 16:57
 * 砍价商品实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoBargain {
    private Long id;
    private Long itemId;
    private String image;
    private String bargainName;
    private String productDesciption;
    private BigDecimal minPrice;
    private Integer totalTimes;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startingTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;
    private String status;
    private Integer limitNum;
    private Integer limitSurplus;
    private Integer helpPeople;
    private String images;
    private String details;
    private Integer participant;
    private Integer successCount;
    private Long itemSpecId;
    private Long carouselId;
    private Long specItemId;
    private Long itemId1;
    private BigDecimal price;
    private Integer inventory;
    private Integer buyLimit;
    private List<BgBargainItem> bargainItemList;
}
